using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using jQuery.ScriptManager;

namespace TestSite
{
    public partial class TestControl : System.Web.UI.UserControl
    {

        jQueryManager jManage;

        protected override void OnLoad(EventArgs e)
        {
            jManage = jQueryManager.GetCurrent(this.Page);
        }

        protected override void CreateChildControls()
        {
            jManage.RegisterScript("function ControlFunc(){alert('in control');}");
            jManage.RegisterStartFunction("ControlFunc");
        }
    }
}